package
{
	import flash.display.Sprite;
	import flash.events.Event;
	
	/**
	 * SWFSequencer using XML metadata sample
	 * @author jvirkovskiy
	 */
	public class Main extends Sprite 
	{
		
		public function Main() 
		{
			if (stage) init();
			else addEventListener(Event.ADDED_TO_STAGE, init);
		}
		
		private function init(e:Event = null):void 
		{
			removeEventListener(Event.ADDED_TO_STAGE, init);
			
			var sample:SingleSourceSample = new SingleSourceSample();
			sample.x = 300;
			sample.y = 300;
			
			addChild(sample);
			
			var marker:Sprite = new Sprite();
			marker.graphics.lineStyle(1, 0x0000ff);
			marker.graphics.moveTo( -2, 0);
			marker.graphics.lineTo(3, 0);
			marker.graphics.moveTo(0, -2);
			marker.graphics.lineTo(0, 3);
			
			marker.x = 300;
			marker.y = 300;
			
			addChild(marker);
		}
	}
}